From 34f71bcc7ce9196ff101ceed2e339af921db984c Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 17 Aug 2005 13:33:55 +0000 Subject: [PATCH] Allocate_empty_lowmem_regions available to non-priv domains and to modules. From Ross Mcilroy. --- linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c | 4 ++-- linux-2.6-xen-sparse/include/asm-xen/hypervisor.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c b/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c index bd75d0622d..2c9f9acc3f 100644 --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/hypervisor.c @@ -35,6 +35,7 @@ #include #include #include +#include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) #include #include @@ -352,7 +353,6 @@ void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order) balloon_unlock(flags); } -#ifdef CONFIG_XEN_PHYSDEV_ACCESS unsigned long allocate_empty_lowmem_region(unsigned long pages) { @@ -401,4 +401,4 @@ unsigned long allocate_empty_lowmem_region(unsigned long pages) return vstart; } -#endif /* CONFIG_XEN_PHYSDEV_ACCESS */ +EXPORT_SYMBOL(allocate_empty_lowmem_region); diff --git a/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h b/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h index af2dacf9ee..2167a737f7 100644 --- a/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h +++ b/linux-2.6-xen-sparse/include/asm-xen/hypervisor.h @@ -137,10 +137,8 @@ void xen_invlpg_mask(cpumask_t *mask, unsigned long ptr); void xen_create_contiguous_region(unsigned long vstart, unsigned int order); void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order); -#ifdef CONFIG_XEN_PHYSDEV_ACCESS /* Allocate a contiguous empty region of low memory. Return virtual start. */ unsigned long allocate_empty_lowmem_region(unsigned long pages); -#endif #include -- 2.30.2